Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Allows automerging PRs in the 'unstable' state #126

Merged
merged 1 commit into from
Jan 21, 2021
Merged

Conversation

ryanmoran
Copy link
Member

Summary

As outlined in an issue on octokit, the unstable state is defined as "Failing/pending commit status that is not part of the required status checks. Merging is allowed."

Use Cases

Running the "Auto Merge" workflow itself induces an unstable state as it is a pending check that is not part of the required status checks. This is different than the blocked state which is induced by running one of the required status checks. Either way, a merge will only be possible if all of the required checks have passed and so it should be safe to allow the "Auto Merge" workflow to attempt to merge the PR given an unstable state.

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have added an integration test, if necessary.

As outline in an [issue on
octokit](octokit/octokit.net#1763), the
`unstable` state is defined as "Failing/pending commit status that is
not part of the required status checks. Merging is allowed."

Running the "Auto Merge" workflow itself induces an `unstable` state as
it is a pending check that is not part of the required status checks.
This is different than the `blocked` state which is induced by running
one of the required status checks. Either way, a merge will only be
possible if all of the required checks have passed and so it should be
safe to allow the "Auto Merge" workflow to attempt to merge the PR given
an `unstable` state.
@ryanmoran ryanmoran requested a review from a team as a code owner January 21, 2021 16:49
@fg-j fg-j merged commit 434fcef into main Jan 21, 2021
@fg-j fg-j deleted the allow-unstable-merge branch January 21, 2021 17:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants